package com.example.admin.mapper;


import com.example.admin.entity.CommunityActivity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ActivityMapper {

    List<CommunityActivity> selectActivityPage();

    int addActivity(@Param("communityActivity") CommunityActivity communityActivity);

    int editActivity(@Param("communityActivity") CommunityActivity communityActivity);

    int deleteActivityById(@Param("activityId") Integer activityId);

    List<CommunityActivity> selectActivityByName(@Param("activityName") String activityName);
}
